package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

@TableName("t_receive")
public class ReceiveBean {
    @TableId(value = "pk_transId",type = IdType.AUTO)
    private Integer transId;
    @TableField("re_readStatus")
    private String read="未阅读";
@TableField("re_delStatus")
    private String delStatus="未删除";
@TableField(exist = false)
    private EmailBean emailBean;
@TableField("fk_emailId")
    private Integer emailId;
@TableField("fk_receiverId")
    private Integer receiverId;

    public ReceiveBean() {
    }

    public ReceiveBean(String read, String delStatus, Integer emailId, Integer receiverId) {
        this.read = read;
        this.delStatus = delStatus;
        this.emailId = emailId;
        this.receiverId = receiverId;
    }

    public Integer getTransId() {
        return transId;
    }

    public void setTransId(Integer transId) {
        this.transId = transId;
    }

    public String getRead() {
        return read;
    }

    public void setRead(String read) {
        this.read = read;
    }

    public String getDelStatus() {
        return delStatus;
    }

    public void setDelStatus(String delStatus) {
        this.delStatus = delStatus;
    }

    public EmailBean getEmailBean() {
        return emailBean;
    }

    public void setEmailBean(EmailBean emailBean) {
        this.emailBean = emailBean;
    }

    public Integer getEmailId() {
        return emailId;
    }

    public void setEmailId(Integer emailId) {
        this.emailId = emailId;
    }

    public Integer getReceiverId() {
        return receiverId;
    }

    public void setReceiverId(Integer receiverId) {
        this.receiverId = receiverId;
    }

    @Override
    public String toString() {
        return "ReceiveBean{" +
                "transId=" + transId +
                ", read='" + read + '\'' +
                ", delStatus='" + delStatus + '\'' +
                ", emailBean=" + emailBean +
                ", emailId=" + emailId +
                ", receiverId=" + receiverId +
                "}\n";
    }
}
